package pile.pay.service;

import pile.pay.entity.GrantPower;
import com.baomidou.mybatisplus.extension.service.IService;
import pile.pay.entity.ResponseResult;
import pile.pay.params.grantPower.DeleDTO;
import pile.pay.params.grantPower.ListDTO;
/**
 * <p>
 * 发放电量 服务类
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-29
 */
public interface IGrantPowerService extends IService<GrantPower> {


  ResponseResult add(GrantPower grantPower);


  /**
   * 查询用户在该场站下的免费电量  根据电站ID 用户ID 渠道查询  免费电
   * @param memberId
   * @param stationId
   * @param channel
   * @return
   */
    GrantPower selectByMemberIdAndStationId(Integer memberId, Integer stationId, Integer channel);

  /**
   * 根据免费电ID 修改免费电 +
   * @param givePower
   * @param grantPowerId
   */
  void updatePower(Integer givePower, Integer grantPowerId);
}
